package com.bothin.experiment4.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "contact_detail")
@Data
public class ContactDetail {
    /**
     * 合同商品详情表主键
     */
    @Id
    @Column(name = "detail_id")
    private String detailId;

    @Column(name = "product_id")
    private String productId;

    @Column(name = "contact_id")
    private String contactId;

    /**
     * 数量
     */
    @Column(name = "product_quantity")
    private Integer productQuantity;

    /**
     * 剩余数量
     */
    @Column(name = "print_status")
    private Integer printStatus;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    public ContactDetail() {
    }

    public ContactDetail(String detailId, String productId, String contactId, Integer productQuantity, Integer printStatus) {
        this.detailId = detailId;
        this.productId = productId;
        this.contactId = contactId;
        this.productQuantity = productQuantity;
        this.printStatus = printStatus;
    }
}